Improve repo grep UX across CLI and MCP - #31
Merged
Merged
Conversation
Replace the deprecated single-file grep flow with deterministic repo-wide grep backed by grepRepo so CLI and MCP share one contract. This aligns the public surfaces, updates docs and parity tests, and fixes validation, context rendering, and typecheck drift discovered during rollout.
Tighten repo grep terminal output with line deduping, merged context blocks, concise pagination hints, and clearer summary wording. Also rewrite missing-navpack failures into actionable CLI guidance and add a narrow-scope hint for noisy broad grep results.
Make grep context output closer to ripgrep by printing each file path once per block and emitting compact line-prefixed context rows. This keeps plain no-context output unchanged while making -C/-A/-B results much easier to scan.
Use compact heading-style output for terminal grep sessions while keeping file:line:text output for pipes and other non-TTY consumers. This makes the default interactive experience much closer to ripgrep without breaking machine-friendly output.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
grepRepoacross CLI and MCP via a shared request/response contractVerification
code grep